package day07;

import java.util.Scanner;

/*
* 找到2-100之间的所有素数
* */

public class PrimeNumber {
    public static void main(String[] args) {
        add();
    }
    public static void  add(){
        Scanner scanner  = new Scanner(System.in);
        int max = scanner.nextInt();
        long startTime = System.currentTimeMillis();
        for (int x = 2;x<=max;x++){
            boolean flag = true;
            for (int s = 2;s<=x/2;s++){
                if (x%s == 0){
                    flag = false;
                    break;
                }
            }
            if (flag){
                System.out.println(x);
            }
        }
        long endTime = System.currentTimeMillis();
        System.out.println(startTime);
        System.out.println(endTime);
    }
}
